power:pmic: prevent data abort for pmic bat command
authorPiotr Wilczek <[email protected]>
Thu, 26 Sep 2013 12:43:35 +0000 (14:43 +0200)
committerTom Rini <[email protected]>
Mon, 7 Oct 2013 12:21:13 +0000 (08:21 -0400)
commita6abaadcfa69d02aafc51b22a39b8dbde1a7a76c
treefbb6c0217e746ba828231c90552db4b621f8adc7
parentf835c77fb7e57508ffe8d8ca3a092ee28add77b2
power:pmic: prevent data abort for pmic bat command

This patch prevents data abort when pmic bat command is called
on non-batery pmic device.

Signed-off-by: Piotr Wilczek <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
CC: Lukasz Majewski <[email protected]>
CC: Minkyu Kang <[email protected]>
drivers/power/power_core.c